package com.totem.base.enums;

import lombok.Getter;

import java.util.Objects;

@Getter
public enum FundAmtTypeEnum {
    FUND_OTHER("OTHER"),
    FUND_100("100"),
    FUND_200("200"),
    FUND_300("300");

    private final String code;

    FundAmtTypeEnum(String code){
        this.code = code;
    }

    public static FundAmtTypeEnum byCode(String code) {
        for (FundAmtTypeEnum e: FundAmtTypeEnum.values()) {
            if (e.code.equalsIgnoreCase(code)) {
                return e;
            }
        }
        return null;
    }
}
